<link href="../../../css/faculty/profile.css" rel="stylesheet" type="text/css"/>
<div class="container-fluid">
    <div class="row-fluid">

        <div class="span3">
            <!--<img alt="140x140" src="http://lorempixel.com/140/140/" />-->
            <center>
                <br/>
                <br/>
                <?php
                echo '<img alt="140x140"  src="' . $base_url . 'img/members/blank.png"/>';
                ?>

            </center>
        </div>
        <div class="span9">
            <div class="tabbable">
                <ul class="nav nav-tabs">
                    <li class="active">
                        <a href="#basic" data-toggle="tab">Add Profile</a>
                    </li>


                </ul>

                <div class="tab-content" style="background-color: rgba(0, 0, 0, 0.7); border-radius: 25px;">
                    <div class="tab-pane active" id="basic" style="margin-left: 30px">
                        <!-- Public -->

                        <div style="font-family:Georgia; font-size:18px; font-weight:bold">
                            <?php echo form_open('admin/register'); ?>
                            <fieldset>
                                <h3 style=" color:wheat">Login Information </h3>

                                <div class="profile">
                                    <div class="row-fluid">
                                        <div class="span3">Username:</div>
                                        <div class="span9">
                                            <input type="text" id="reg_username" name="reg_username"/>
                                        </div>
                                    </div>

                                    <div class="row-fluid">
                                        <div class="span3">Password:</div>
                                        <div class="span9">
                                            <input type="password" id="reg_password" name="reg_password"/>
                                        </div>
                                    </div>

                                    <div class="row-fluid">
                                        <div class="span3">Confirm Password:</div>
                                        <div class="span9">
                                            <input type="password" id="reg_con_password" name="reg_con_password"/>
                                        </div>
                                    </div>
                                    <h3 style=" color:wheat">Basic Information </h3>

                                    <div class="profile">
                                        <div class="row-fluid">
                                            <div class="span3">First Name:</div>
                                            <div class="span9">
                                                <input type="text" id="edit_fname" name="edit_fname"/>
                                            </div>
                                        </div>

                                        <div class="row-fluid">
                                            <div class="span3">Middle Name:</div>
                                            <div class="span9">
                                                <input type="text" id="edit_mname" name="edit_mname"/>
                                            </div>
                                        </div>

                                        <div class="row-fluid">
                                            <div class="span3">Last Name:</div>
                                            <div class="span9"><input type="text" id="edit_lname" name="edit_lname"/>
                                            </div>
                                        </div>

                                        <div class="row-fluid">
                                            <div class="span3">Birthdate:</div>
                                            <div class="span9"><input type="text" id="edit_birthdate"
                                                                      name="edit_birthdate"/>
                                            </div>
                                        </div>

                                        <div class="row-fluid">
                                            <div class="span3">Address:</div>
                                            <div class="span9"><input type="text" id="edit_address"
                                                                      name="edit_address"/>
                                            </div>
                                        </div>

                                        <h3 style="color:wheat"> Academic Information </h3>

                                        <div class="row-fluid">
                                            <div class="span3">Status:</div>
                                            <div class="span9">
                                                <div id="div_status"></div>
                                                <select id="edit_status" name="edit_status">
                                                    <?php
                                                    foreach ($tblStatus as $row) {
                                                        $selected = '';
                                                        if ($profileStatus == $row['Description'])
                                                            $selected = 'selected';
                                                        echo '<option value="' . $row['ID'] . '" ' . $selected . '>
                                                            ' . $row['Description'] . '
                                                       </option>';
                                                    }
                                                    ?>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="row-fluid">
                                            <div class="span3">Highest Degree/s:</div>
                                            <div class="span9">
                                                <div id="div_degree"></div>
                                                <select id="edit_degree" name="edit_degree">
                                                    <?php
                                                    foreach ($tblDegree as $row) {
                                                        $selected = '';
                                                        if ($profileDegree == $row['Description'])
                                                            $selected = 'selected';
                                                        echo '<option value="' . $row['ID'] . '" ' . $selected . '>
                                                            ' . $row['Description'] . '
                                                       </option>';
                                                    }
                                                    ?>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="row-fluid">
                                            <div class="span3">Rank:</div>
                                            <div class="span9">
                                                <div id="div_rank"></div>
                                                <select id="edit_rank" name="edit_rank">
                                                    <?php
                                                    foreach ($tblRank as $row) {
                                                        $selected = '';
                                                        if ($profileRank == $row['Description'])
                                                            $selected = 'selected';
                                                        echo '<option value="' . $row['ID'] . '" ' . $selected . '>
                                                            ' . $row['Description'] . '
                                                       </option>';

                                                    }
                                                    ?>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="row-fluid">
                                            <div class="span3">Department:</div>
                                            <div class="span9">
                                                <div id="div_department"></div>
                                                <select id="edit_department" name="edit_department">
                                                    <?php
                                                    foreach ($tblDepartment as $row) {
                                                        $selected = '';
                                                        if ($profileDepartment == $row['Description'])
                                                            $selected = 'selected';
                                                        echo '<option value="' . $row['DeptID'] . '" ' . $selected . '>
                                                     ' . $row['Description'] . '
                                                 </option>';

                                                    }
                                                    ?>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="row-fluid">
                                            <div class="span3">Specialization</div>
                                            <div class="span9"><input type="text" id="edit_special"
                                                                      name="edit_special"/>
                                            </div>
                                            <div class="row-fluid">
                                                <button id="btn_register" type="submit" class="btn btn-primary">
                                                    Register
                                                </button>
                                            </div>
                                        </div>
                                        <!--Profile-->

                                    </div>
                                </div>

                            </fieldset>
                            <?php echo form_close(); ?>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <br/>
        <script type="text/javascript">

            jQuery.noConflict();

            $(function () {

                $('#edit_birthdate').datepicker();


            });

